package service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.IncomeMapper;
import service.IncomeService;

@Service
public class IncomeServiceImpl implements IncomeService {

	@Autowired
	IncomeMapper incomeMapper;
	
	@Override
	public Long getIncomeAll(long userId) {
		return incomeMapper.getIncomeAll(userId);
	}

	@Override
	public Integer withDraw(Map map) {
		return incomeMapper.withDraw(map);
	}

}
